package com.gtd.account



import javax.jdo.annotations.*;
import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
class AccountSetting implements Serializable {

	@PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	Key key

	@Persistent
	String keyName

	@Persistent
	String keyValue

	@Persistent
	User user

    static constraints = {
    	key nullable:true
    	keyName blank:false //TODO: Need to validate from AccountSettingKey
    	keyValue nullable:false
    	user nullable:false
	}
}
